<layout name="Layout/layout" />
<div class="row">
	<div class="col-lg-12">
		<h1 class="page-header">权限</h1>
	</div>
	<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
	<div class="col-lg-12">
		<div class="panel panel-default">
			<div class="panel-heading">
				新增权限
			</div>
			<!-- /.panel-heading -->
			<div class="panel-body">
				<form role="form" action="{:U('Admin/Access/addAccessHandle')}" method="post">
					<div class="form-group">
						<label>节点名称</label>
						<input type="text" name="name" class="form-control" placeholder="节点名称，应用/控制器/方法名称">
					</div>
					<div class="form-group">
						<label>父节点</label>
						<select name="pid" class="form-control">
							<option value="0">根节点</option>
							<?php 
								foreach($nodelist as $v){
								?>
									<!-- 分割符 -->
								<?php
									foreach($v as $k=>$vo){
										?>
											<option value="{$vo['id']}"><?php if($k!=0)echo '————'; ?>{$vo['name']}</option>
										<?php
									}
								}
							?>
						</select>
					</div>
					<div class="form-group">
						<label>Level级</label>
						<select name="level" class="form-control">
							<option value="1">应用</option>
							<option value="2">控制器</option>
							<option value="3">方法</option>
						</select>
					</div>
					<div class="form-group">
						<label>备注</label>
						<input type="text" name="title" class="form-control" placeholder="描述本节点的功能">
					</div>
					<button type="submit" class="btn btn-default">新增</button>
					<button type="reset" class="btn btn-default">重置</button>
				</form>
			</div>
			<!-- /.panel-body -->
		</div>
		<!-- /.panel -->
	</div>
	<!-- /.col-lg-12 -->
</div>